.class Lcom/estrongs/android/taskmanager/hh;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/estrongs/android/taskmanager/TaskManager;


# direct methods
.method constructor <init>(Lcom/estrongs/android/taskmanager/TaskManager;)V
    .locals 0

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/hh;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hh;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->f(Lcom/estrongs/android/taskmanager/TaskManager;)Ljava/util/Vector;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/hh;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v2}, Lcom/estrongs/android/taskmanager/TaskManager;->g(Lcom/estrongs/android/taskmanager/TaskManager;)Ljava/util/Vector;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v2

    if-ne v0, v2, :cond_1

    const/4 v0, 0x1

    :goto_0
    iget-object v2, p0, Lcom/estrongs/android/taskmanager/hh;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v2, v0}, Lcom/estrongs/android/taskmanager/TaskManager;->a(Z)V

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hh;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v2, "exit_after_killall"

    invoke-interface {v0, v2, v1}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/hh;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->finish()V

    :cond_0
    return-void

    :cond_1
    move v0, v1

    goto :goto_0
.end method
